package com.thinkpurple.android.bolognawelcome.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.thinkpurple.android.bolognawelcome.R;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        Button btnSocial = (Button) findViewById(R.id.socialtoolBtn);        
        btnSocial.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intentSocial = new Intent(MainActivity.this, SocialToolActivity.class);
				 startActivity(intentSocial);				
			}
		});
        
        
        Button btnNews = (Button) findViewById(R.id.newsBtn);
        btnNews.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intentNews = new Intent(getApplicationContext(), NewsActivity.class);
				 startActivity(intentNews);				
			}
		});
        
        
        Button btnInfo = (Button) findViewById(R.id.infoBtn);
        btnInfo.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intentInfo = new Intent(getApplicationContext(), InfoActivity.class);
				 startActivity(intentInfo);	
			}
		});
        
        Button btnMyShare = (Button) findViewById(R.id.myShareBtn);
        btnMyShare.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intentMyShare = new Intent(getApplicationContext(), MyShareActivity.class);
				 startActivity(intentMyShare);
			}
		});
    }
    
}
